package demo8;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person p1=new Person();
        Person p2=p1.clone();
        System.out.println(p2==p1);
        System.out.println(p1.m.money);
        System.out.println(p2.m.money);
        System.out.println("---------------");
        p1.m.money=50;
        System.out.println(p1.m.money);
        System.out.println(p2.m.money);
    }
}
